export default {
	namespaced: true,
	state: {
		userInfo:null
	},
	mutations: {
		login(state,userInfo){
			state.userInfo=userInfo;
		},
		logout(state){
			state.userInfo=null;
		}
	},
	actions: {
	login({commit},userInfo){
		commit('login',userInfo)
	},
	logout({commit}){
		commit('login')
	},
	
	},
}
